/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ia_0.data_model.character;
import ia_0.data_model.configuration.Configuration;

import java.lang.Object;
import java.util.LinkedList;

/**
 *
 * @author yguo
 */
public class CharacterStrategie {

    LinkedList<Object> fifoCs;

    public CharacterStrategie(){
        fifoCs = new LinkedList<Object>();
    }
    public boolean existAction(){
        return !fifoCs.isEmpty();
    }
    public Object finishAction(){
            return fifoCs.pop();
    }
    public Object seeFirstAction(){
        return fifoCs.peekFirst();
    }
    public void addAction(Object o){
        if(!fifoCs.contains(o))
            fifoCs.addFirst(o);
    }
    public void addPrioAction(Object o){
        if(!fifoCs.contains(o))
            fifoCs.addFirst(o);
    }



}
